﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin_cms/admin_master.master"
    AutoEventWireup="true" CodeFile="admin_diadanh.aspx.cs" Inherits="admin_cms_default"
    EnableEventValidation="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style type="text/css">
        .checkgroup1
        {
            margin: 10px 10px;
        }
        .bor_checkbox
        {
            background-color: #C9CBCC;
            padding: 10px 10px;
        }
        .bor_checkbox1
        {
            background-color: #efebe8;
            padding: 10px 10px;
        }
    </style>
    <div class="all_khung_form1">
        <div class="bor_checkbox">
       Chọn: Tour Nước Ngoài || Tour Trong Nước
            <asp:DropDownList runat="server" ID="drMenu" Height="25px" Width="335px"
                AutoPostBack="true" Enabled="true" OnSelectedIndexChanged="drmenu_change">
            </asp:DropDownList>
        </div>
        <div class="top_khung_form1">
            <h5>
                Quản lý địa danh</h5>
        </div>
        <div class="khung_form1">
            <h3>
                Tên địa danh:
            </h3>
            <asp:TextBox ID="txtname" runat="server" class="txtform"></asp:TextBox>
        </div>
        
        <div class="khung_form1">
            <h3>
                Trạng thái hiển thị:
            </h3>
            <asp:TextBox ID="txtstatus" runat="server" class="txtform"></asp:TextBox>
        </div>
        <div class="khung_form1">
            <h3>
                Vị trí sắp xếp:
            </h3>
            <asp:TextBox ID="txtsort" runat="server" class="txtform"></asp:TextBox>
        </div>
        <%--   <div class="khung_form1">
                <%--  <h3>
                Chọn ảnh:
            </h3>
            <input type="file" id="Text3" class="txtform" /></div>--%>
        <div class="khung_form1">
            <asp:Button ID="Button1" runat="server" Text="Thêm mới" OnClick="Yahoo_Insert" /><asp:Button
                ID="Button2" runat="server" Text="Update" OnClick="yahoo_update" />
        </div>
    </div>
    <%-- <div class="all_khung_form2">
        <div class="box grid_16 round_all">
            <h2 class="box_head grad_colour round_top">
                Tiny Editor</h2>
            <a href="#" class="grabber">&nbsp;</a> <a href="#" class="toggle">&nbsp;</a>
            <div class="block no_padding">
                <textarea id="tiny_input"></textarea>
            </div>
        </div>

        <script type="text/javascript">
			new TINY.editor.edit('editor',{
				id:'tiny_input',
				height:200,
				cssclass:'te',
				controlclass:'tecontrol',
				rowclass:'teheader',
				dividerclass:'tedivider',
				controls:['bold','italic','underline','strikethrough','|','subscript','superscript','|',
						  'orderedlist','unorderedlist','|','outdent','indent','|','leftalign',
						  'centeralign','rightalign','blockjustify','|','unformat','|','undo','redo','n','image','hr','link','unlink','|','cut','copy','paste','print','|','font','size','style'],
				footer:false,
				fonts:['Arial','Verdana','Georgia','Trebuchet MS'],
				xhtml:true,
				cssfile:'style.css',
				bodyid:'editor',
				footerclass:'tefooter',
				toggle:{text:'source',activetext:'wysiwyg',cssclass:'toggler'},
				resize:{cssclass:'resize'}
			});
        </script>

    </div>--%>
    <div class="all_khung_form3">
        <div class="griv_content">
            <asp:GridView ID="GridView1" runat="server" CssClass="mGrid" PagerStyle-CssClass="pgr"
                Font-Size="12px" AutoGenerateColumns="false" AlternatingRowStyle-BackColor="#DFE2E4"
                OnRowCommand="grv_yahoo_click">
                <Columns>
                    <asp:BoundField HeaderText=" Mã Yahoo" DataField="IdYahoo" />
                    <asp:BoundField HeaderText="Tên địa danh" DataField="Name" />
                   
                    <asp:BoundField HeaderText="Trạng thái" DataField="Status" />
                    <asp:BoundField HeaderText="Sắp xếp" DataField="Sort" />
                </Columns>
                <Columns>
                    <asp:TemplateField HeaderText="Xóa">
                        <ItemTemplate>
                            <asp:ImageButton runat="server" ImageUrl="~/admin_cms/style/images/icons/small/grey/Acces Denied Sign.png"
                                CssClass="grivimg" ID="imgxoa" OnClick="bt_delete_yahoo" CommandArgument='<%#Eval("IdYahoo") %> '
                                CommandName="X" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <Columns>
                    <asp:TemplateField HeaderText="Sửa">
                        <ItemTemplate>
                            <asp:ImageButton runat="server" ImageUrl="~/admin_cms/style/images/icons/small/grey/Create Write.png"
                                ID="imgsua" CommandArgument='<%#Eval("IdYahoo") %> ' CommandName="S" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
    </div>
</asp:Content>
